From: Raimond Spekking Date: Tue, 20 Apr 2010 08:14:47 +0000 (+0000) Subject: Follow-up r64078: Define $ntl at the beginning to avoid PHP Notice: Undefined variabl... X-Git-Tag: 1.31.0-rc.0~37061 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=f5a6ea597cf0ca374d4decc9b1504e4885773463;p=lhc%2Fweb%2Fwiklou.git Follow-up r64078: Define $ntl at the beginning to avoid PHP Notice: Undefined variable: ntl in /www/w/includes/Skin.php on line 2238 Seen on translatewiki today --- diff --git a/includes/Skin.php b/includes/Skin.php index 9e2981d677..8c327e4386 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -2189,6 +2189,7 @@ CSS; function getNewtalks() { global $wgUser, $wgOut; $newtalks = $wgUser->getNewMessageLinks(); + $ntl = ''; if( count( $newtalks ) == 1 && $newtalks[0]['wiki'] === wfWikiID() ) { $userTitle = $this->mUser->getUserPage(); @@ -2232,8 +2233,6 @@ CSS; $parts = implode( $sep, $msgs ); $ntl = wfMsgHtml( 'youhavenewmessagesmulti', $parts ); $wgOut->setSquidMaxage( 0 ); - } else { - $ntl = ''; } return $ntl; }